<?php

class Admin_Form_RelatorioConcursoExternoDisciplina extends Twitter_Bootstrap_Form_Horizontal
{

    public function init()
    {
        $modDisciplinas = new Admin_Model_Disciplinas();
        $modProf        = new Remanejamento_Model_Professor();
        
        $lstDisciplinas     = $modDisciplinas->listarTodasDisciplinas();
        $lstCres            = $modProf->listarCresExistentes(); 
        
        
        $this->setIsArray(true)
             ->setElementsBelongTo('');

        $this->setAction('/admin/relatorio/concurso-externo-disciplina')
             ->setName('Form_ClassificarPne')
             ->setAttrib('id', 'form_classificar_pne')
             ->setMethod('post');

        $this->addElement('select', 'disciplina', array('label'         => 'Disciplina',
                                                        'required'      => true,
                                                        'class'         => 'span10',
                                                        'multiOptions'  => array("" => "Selecione uma disciplina",)+$lstDisciplinas
                          ));    

                
        $this->addElement('select', 'regEscolha', array('label'         => 'DRE de Lotação:',
                                                        'class'         => "span10",
                                                        'multiOptions'  => array("" => "Todas as Regionais", "99" => "SEDE", "98" => "SECRETARIA EXTRAORDINARIA")+$lstCres
                          ));    
        
        $this->addElement('submit', 'btnConsultar', array('label' => 'Consultar',
                                                          'class' => 'btn btn-primary'));
    }
}